package com.huiminpay.merchant.convert;

import com.huiminpay.merchant.entity.Merchant;
import com.yh.merchant.dto.MerchantDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: HWW
 * @Date: 2021/8/1915:26
 * @Desc:
 */
@Mapper
public interface MerchantConvert {

    MerchantConvert INSTANCE = Mappers.getMapper(MerchantConvert.class);

    MerchantDTO entity2dto(Merchant merchant);

    Merchant dto2entity(MerchantDTO merchantDTO);

    List<MerchantDTO> entityList2dtoList(List<Merchant> list);

    List<Merchant> dtoList2entityList(List<MerchantDTO> list);
}
